package com.hwtx.form.persistence.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@Data
@TableName("i18n_message")
@Schema(description = "国际化定义")
public class I18nMessage {

    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Long id;

    @Schema(description = "message_key")
    private String messageKey;

    @Schema(description = "中文")
    private String zh;

    @Schema(description = "英文")
    private String en;

    @Schema(description = "编码")
    private String module;

    @TableField(fill = FieldFill.INSERT)
    @Schema(description = "创建时间")
    @JsonIgnore
    private Date createTime;

    @Schema(description = "创建人ID")
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT)
    private String createId;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    @Schema(description = "修改时间")
    @JsonIgnore
    private Date updateTime;

    @Schema(description = "更新人ID")
    @JsonIgnore
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateId;
}
